package pl.elka.simulator.core.experiment;

import java.util.ArrayList;
import java.util.List;

import pl.elka.simulator.core.IPaintable;
import pl.elka.simulator.core.Node;
import pl.elka.simulator.core.Position;

public class NodePath implements IPaintable {
	public List<Position> path = new ArrayList<Position>();
	private Node parent;
	public NodePath(Node node) {
		this.parent = node;
	}
	public void addPathElement(Position element){
		path.add(element);
	}
	public List<Position> getPath(){
		return path;
	}
	public Node getParent(){
		return parent;
	}
}
